import request from '@/utils/request'

/** 新增用户组*/
export function insertUsergroup(data) {
  return request({
    url: '/tSecUsergroup/insertUsergroup',
    method: 'post',
    data
  })
}

/** 更新用户组*/
export function updateUsergroup(data) {
  return request({
    url: '/tSecUsergroup/updateUsergroup',
    method: 'post',
    data
  })
}

/** 删除用户组*/
export function delUsergroup(data) {
  return request({
    url: '/tSecUsergroup/delUsergroup',
    method: 'post',
    data
  })
}

/** 查询员工类型列表*/
export function queryStaffTypeList(data = {}) {
  return request({
    url: '/common/queryStaffTypeList',
    method: 'post',
    data
  })
}
//  批改设置
// 新增
export function save(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/save',
    method: 'post',
    data
  })
}
// 修改
export function edit(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/edit',
    method: 'post',
    data
  })
}
// 删除
export function deletes(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/delete',
    method: 'delete',
    data
  })
}
// 列表
export function list(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/list',
    method: 'post',
    data
  })
}
// 批改设置明细
// 获取批改设置明细
export function settingList(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/entry/list',
    method: 'post',
    data
  })
}
// 新增批改设置明细
export function settingSave(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/entry/save',
    method: 'post',
    data
  })
}
// 修改批改设置明细
export function settingEdit(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/entry/edit',
    method: 'post',
    data
  })
}
// 删除批改设置明细
export function settingDel(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/entry/delete',
    method: 'delete',
    data
  })
}
// 批改
export function batchUpdate(data) {
  return request({
    url: '/tBaseBatchUpdateSetting/batchUpdate',
    method: 'post',
    data
  })
}
// 接口
export function axiosUrl(url, data) {
  return request({
    url: url,
    method: 'post',
    data
  })
}
// 拼接配置-新增
export function splicingCreate(data) {
  return request({
    url: '/tBaseAttrJoin/create',
    method: 'post',
    data
  })
}
// 拼接配置-修改
export function splicingEdit(data) {
  return request({
    url: '/tBaseAttrJoin/edit',
    method: 'post',
    data
  })
}
// 拼接配置-列表
export function splicingList(data) {
  return request({
    url: '/tBaseAttrJoin/list',
    method: 'post',
    data
  })
}
// 拼接配置-删除
export function splicingDelete(data) {
  return request({
    url: '/tBaseAttrJoin/delete',
    method: 'delete',
    data
  })
}
// 拼接配置-详情
export function splicingDetails(params) {
  return request({
    url: '/tBaseAttrJoin/details',
    method: 'get',
    params
  })
}
// 拼接配置详情-保存，删除，修改
export function splicingUpdate(data) {
  return request({
    url: '/tBaseAttrJoin/entry/update',
    method: 'post',
    data
  })
}
